package com.ques.pojo;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.annotation.Transient;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * 用户
 * @author zq  2020-01-05
 */
@Document("user")
@Data
public class User {
    /**
     * 用户id
     */
    @Id
    private String id;
    /**用户邮箱*/
    private String userMail;
    /**用户昵称*/
    private String nickname;
    /**用户密码*/
    private String password;

    @Transient
    private String code ;
}
